package com.todod.base.module.base.controller.admin.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.todod.base.framework.excel.core.annotations.DictFormat;
import com.todod.base.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 仪器设备 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "54250")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "设备编码")
    @ExcelProperty("设备编码")
    private String code;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "丁真")
    @ExcelProperty("设备名称")
    private String name;

    @Schema(description = "类型(数据字典下拉：yq_type:(zhljy:综合录井仪;zjcsy:钻井参数仪;szcl_lwd:随钻测量LWD;szcl_mwd:随钻测量MWD;jxyly:井下压裂仪;gjyq:固井仪器;syyq:试油仪器;dhyq:地化仪器))", example = "2")
    @ExcelProperty(value = "类型(数据字典下拉：yq_type:(zhljy:综合录井仪;zjcsy:钻井参数仪;szcl_lwd:随钻测量LWD;szcl_mwd:随钻测量MWD;jxyly:井下压裂仪;gjyq:固井仪器;syyq:试油仪器;dhyq:地化仪器))", converter = DictConvert.class)
    @DictFormat("yq_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String type;

    @Schema(description = "型号(数据字典下拉，对应各类型)")
    @ExcelProperty("型号(数据字典下拉，对应各类型)")
    private String mode;

    @Schema(description = "其他参数")
    @ExcelProperty("其他参数")
    private String otherParams;

    @Schema(description = "备注", example = "你好丁真")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}